package com.ywkj.ktyunxiao.app.controller;

import com.ywkj.ktyunxiao.app.service.TestService;
import modal.GoodsType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author MiaoGuoZhu
 * @date 2018/5/22 13:51
 */
@RestController
@RequestMapping("app")
public class TestController {


    @Autowired
    private TestService testService;

    @RequestMapping("")
    public String Test() {
        List<GoodsType> goodsType = testService.selectAllType();

        return goodsType.toString();
    }


}
